package com.ch09f;

public class SubclassB extends SuperclassA {
	SubclassB() { // (2) Default constructor
		this(3);
		System.out.println("Default constructor in SubclassB");
	}

	SubclassB(int i) { // (3) Non-default constructor
		System.out.println("Non-default constructor in SubclassB");
		value = i;
	}

	{ // (4) Instance initializer block
		System.out.println("Instance initializer block in SubclassB");
		value = 2; // (5)
	}
	int value = initializerExpression(); // (6)

	private int initializerExpression() { // (7)
		System.out.println("Instance initializer expression in SubclassB");
		return 1;
	}
}
